﻿<phone:PhoneApplicationPage 
    x:Class="MyWP7Brand_VB.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:mwb="clr-namespace:MyWP7Brand_VB"
    xmlns:converters="clr-namespace:MyWP7Brand_VB.MyWP7Brand_VB.Converters"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <phone:PhoneApplicationPage.Resources>
        <converters:VisibilityConverter x:Key="visibilityCnv" />
    </phone:PhoneApplicationPage.Resources>
    
    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Panorama x:Name="panorama">
            <controls:Panorama.Title>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="My WP7 Brand" Foreground="Yellow"/>
                </StackPanel>
            </controls:Panorama.Title>
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>

            <controls:PanoramaItem>
                <controls:PanoramaItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Blog" Foreground="White"/>
                        <Button Height="48" Width="48" Style="{StaticResource ButtonRefreshStyle}" Click="BlogRefresh_Click"  Margin="50,0,0,0" />
                    </StackPanel>
                </controls:PanoramaItem.Header>
                <ListBox x:Name ="Blog" Margin="0,0,-12,0" SelectionChanged="listbox_SelectionChanged">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                <StackPanel Margin="0,0,0,17" Width="432">
                                    <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextTitle2Style}"  Foreground="Yellow"/>
                                    <TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="White"/>
                                </StackPanel>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PanoramaItem>

            <controls:PanoramaItem>
                <controls:PanoramaItem.Header>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Twitter" Foreground="White"/>
                        <Button Height="48" Width="48" Style="{StaticResource ButtonRefreshStyle}" Click="TwitterRefresh_Click"  Margin="50,0,0,0" />
                    </StackPanel>
                </controls:PanoramaItem.Header>
                <ListBox Margin="0,0,-12,0" x:Name="Twitter" SelectionChanged="listbox_SelectionChanged">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Margin="0,0,0,17" Width="432">
                                <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextTitle3Style}"  Foreground="White"/>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="Info" Foreground="White" >
                <StackPanel Orientation="Vertical">
                    <TextBlock TextWrapping="Wrap" Text="MyWp7Brand v.1.0 App" Style="{StaticResource PhoneTextLargeStyle}" Foreground="White"/>
                    <TextBlock TextWrapping="Wrap" Text="by Blah Blah Blah" Style="{StaticResource PhoneTextLargeStyle}" Foreground="White"/>
                    <TextBlock TextWrapping="Wrap" Text="Super Mega Developer" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White"/>
                    <TextBlock Height="25"/>
                    <Button Width="193" BorderThickness="0" Click="Marketplace_Click" Style="{StaticResource ButtonStyle1}">
                        <Image Height="173" Width="173" Name="image1" Stretch="Fill" HorizontalAlignment="Center" Source="/MyWP7Brand_VB;component/MyWp7Brand.png" />
                    </Button>
                    <TextBlock Height="25"/>
                    <TextBlock TextWrapping="Wrap" Text='"Blah Blah Blah"' Style="{StaticResource PhoneTextLargeStyle}" Foreground="White"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="Twitter: " Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" VerticalAlignment="Center"/>
                        <mwb:ExternalHyperLink NavigateUri="http://www.blah.blah" Content="@blahblahblah" Foreground="Yellow" HorizontalAlignment="Left"/>
                    </StackPanel>
                    <TextBlock Height="10"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="Blog: " Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" VerticalAlignment="Center"/>
                        <mwb:ExternalHyperLink NavigateUri="http://www.blah.blah"
                            Content="www.blah.blah" Foreground="Yellow" HorizontalAlignment="Left" />
                    </StackPanel>
                    <TextBlock Height="10"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock TextWrapping="Wrap" Text="Mail: " Style="{StaticResource PhoneTextNormalStyle}" Foreground="White" VerticalAlignment="Center"/>
                        <HyperlinkButton Content="MyWp7Brand@blah.blah" Foreground="Yellow" HorizontalAlignment="Left" Click="Email_Click" />
                    </StackPanel>
                </StackPanel>
            </controls:PanoramaItem>
        </controls:Panorama>
        <ProgressBar
                x:Name="ProgressBar"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                IsIndeterminate="false"
                Width="480"
                Background="Black"
                Visibility="Collapsed"/>
    </Grid>

    <!--Panorama-based applications should not show an ApplicationBar-->

</phone:PhoneApplicationPage>